package com.meida.module.bus.client.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.base.entity.AbstractAllEntity;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.meida.common.mybatis.annotation.TableAlias;

/**
 * 订单明细表
 *
 * @author flyme
 * @date 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_orderdetail")
@TableAlias("orderdetail")
@ApiModel(value="BusOrderdetail对象", description="订单明细表")
public class BusOrderdetail extends AbstractAllEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "orderdetailId", type = IdType.ASSIGN_ID)
    private Long orderdetailId;

    @ApiModelProperty(value = "订单Id")
    private Long orderId;

    @ApiModelProperty(value = "订单类型（1普通订单，2贵宾厅预约订单，3贵宾通道预约订单，4延误险订单， 5转卡订单,6充值订单）")
    private String orderType;

    @ApiModelProperty(value = "业务Id")
    private Long businessId;

    @ApiModelProperty(value = "商品Id")
    private Long goodsId;

    @ApiModelProperty(value = "商品数量")
    private Integer buyNum;

    @ApiModelProperty(value = "单价")
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "分类码")
    private String categoryCode;

    @ApiModelProperty(value = "(订单是否完成)")
    private Integer isEnd;

    @ApiModelProperty(value = "过期时间")
    private String expireDate;

}
